package com.ruoyi.mapper;

import java.util.List;

import com.ruoyi.domain.SysRole;

public interface SysRoleMapper {

	List<SysRole> selectRoleList(SysRole role);
	
	List<SysRole> selectRoleListByUserId(Long userId);

	SysRole selectRoleById(Long roleId);

	SysRole checkRoleNameUnique(String roleName);

	SysRole checkRoleKeyUnique(String roleKey);

	int insertRole(SysRole role);

	int updateRole(SysRole role);

	List<SysRole> selectRolePermissionByUserId(Long userId);

	int deleteRoleById(Long roleId);

	List<SysRole> selectRoleAll();

	
}
